home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / ezzcomm.zip / DIALMNP.T < prev    next >
Text File  |  1991-02-16  |  8KB  |  144 lines

  1.  : EZ-ZCOMM Copyright 1991 by Roger E. Hough, All Rights Reserved.
  2.  : Licensed for use at your own risk without fee. Altered versions,
  3.  : when distributed, must be clearly marked as altered and accompanied
  4.  : by the originals.
  5.  ife "dT||!%telno" fail;ife r nolog closerx;kill
  6.  ena -dfEKS!abcilnptuvwzZ ha both
  7.  display stat=off noinhibit nodumb vt100 8bit
  8.  ph0 pt4 z pp50 pt100 pB2 set blankfill " " sets s9 %telno
  9.  pat;pat 0 ERROR;pat 1 BUSY
  10.  pat 2 "NO DIALTONE";pat 3 "NO DIAL TONE"
  11.  pat 4 "NO ANSWER";pat 5 "NO CARRIER"
  12.  pat 8c CONNECT "@pat 10i \n"
  13.  pat 9c "NO ECL" "@pat 10i \n"
  14.  : speed on CONNECT statement must be DCE(carrier) speed
  15.  pat 11c " 300" "@estimate 0 300"
  16.  pat 12c " 600" "@estimate 0 600"
  17.  pat 13c " 1200" "@estimate 0 1200"
  18.  pat 14c " 2400" "@estimate 0 2400"
  19.  pat 15c " 4800" "@estimate 0 4800"
  20.  pat 16c " 9600" "@estimate 0 9600"
  21.  pat 17c " 14400" "@estimate 0 14400"
  22.  : port is "locked" at highest speed supported by modem
  23. next:
  24.  bye;speed 38400;estimate 0 300;pat 10c "";split s9 + "";sets s9 %z1;split z0 "." ""
  25.  : '.m' affixed to telephone number indicates MNP/V42 capable BBS
  26.  set z2 &Q6 if %z1&&Jz1,mM set z2 &Q5 : mnp enablement differs by modem
  27.  : set z2 "&Q5S36=3" if %z1&&Jz1,mM set z2 "&Q5S36=7" : for Hayes with V.42
  28.  : mprefix is set to either T(tone dial) or P(pulse dial)
  29.  put "AT%z2\&D%mprefix%z0%msuffix"
  30.  pf60 wait -f60;if 10 sets telno %z0 pf30 display nostat=off;cls;queue delete;ki create -+ %n9/ZC%d%ano.LOG;return
  31.  if 1||2||3 ife %s9 goback next;pi45 pat;bye;fail     :modem detects busy
  32.  :if 1||2||3||5 ife %s9 goback next;pi45 pat;bye;fail :modem doesn't see 'busy'
  33.  pi0 set telno "" queue delete;pat;bye;fail
  34. init:
  35.  set msuffix \r set onexit
  36. @ife r nolog closerx;ife t nolog closetx;ife !c putw ATZ\r
  37.  ife c return; bye; display stat=off;ena -8g;handshake both
  38.  pat; pat 0 "OK\r\n";pat 1 "ERROR\r\n"
  39.  speed 38400 : use highest port speed supported by your modem
  40.  put "ATZ\r";wait -f15
  41.  : note: '\\' will send '\' to modem
  42.  put "ATM0V1&B1&H1&C1&D2&S1&R2\r";wait -f15
  43.  put "ATE0X4S0=0S2=255S6=6S7=50S15=8\r";wait -f15
  44.  pat;return
  45.  :
  46.  :Command  Description
  47.  :-------  --------------------------------------------------------
  48.  :  E0     eliminate echoing of commands
  49.  :  M0     Turn off speaker (M3 if you want to hear the phone ring)
  50.  :  V1     Result codes rather than numbers
  51.  :  &B1    USR Lock speed between your modem and computer
  52.  :  &H1    USR Enable CTS flow control
  53.  :  &C1    Request proper Carrier Detection
  54.  :  &D2    Disconnect and return to command state when DTR drops
  55.  :  &Q5    Hayes - Enable MNP Handshake
  56.  :  &Q6    Hayes - Speed Buffering without error correction
  57.  :  &R2    USR Enable RTS flow control
  58.  :  &S1    Request proper DSR indication (as per EIA RS232C)
  59.  :  X4     Connect Messages with 'busy' and 'no dial tone' recognition.
  60.  :         Use whatever value returns a one-line connect message without
  61.  :         spurious 'voice' recognition.
  62.  :  S0=0   Do not answer the phone
  63.  :  S2=255 Disable +++ escape, to avoid problems when we type +++ or
  64.  :         the remote types +++ and we echo it
  65.  :  S6=6   Wait up to 6 Seconds(for Dial Tone, or for Blind Dialing)
  66.  :  S7=50  Wait 50 seconds for the phone to be answered
  67.  :  S15=8  USR Reduce locked port buffering for non-MNP/V42 connections
  68.  :
  69.  : other commands which may be appropriate:
  70.  :
  71.  :  &A3    USR with V.42: expanded connect messages
  72.  :  &T5    do not grant remote digital loop for remote modems
  73.  :         (UUUUU stuff)
  74.  :  &U0    For ATI(2400, at least) enable/disable MNP data compression
  75.  :         For Hayes, enable V.32 trellis encoding
  76.  :  &K0    USR without V.42bis: disable MNP5 data compression. MNP5
  77.  :         slows transfer of files compressed with ARC/PAK/ZIP/etc.
  78.  :  &K1    Hayes RTS/CTS Flow Control
  79.  :  &K3    USR with V.42bis: allow V.42bis but not MNP5 compression
  80.  :         Hayes RTS/CTS Flow Control(same as &K1)
  81.  :         ATI may also recognize this as flow control.
  82.  :  W2     Hayes report carrier speed on CONNECT response
  83.  :  X7     USR like X4 but dial blind and say 'ringing' on ringback
  84.  :  S36=3  Hayes attempt LAP-M, then fall back to speed buffered async
  85.  :  S36=7  Hayes attempt LAP-M, then MNP, then fall back to speed
  86.  :         buffered async
  87.  :  S48=7  Hayes: Initiate error correction (for caller)
  88.  :     =3  Wait for other end to initiate error correction(for callee)
  89.  :  S95=3  Hayes Indicate connect speed and /ARQ
  90.  :  S49=16 Hayes Async Buffer Lower Bound
  91.  :  S50=32 Hayes Async Buffer Upper Bound
  92.  :
  93.  : Guidelines which apply to all error correcting modems:
  94.  :
  95.  : o   Speed buffering should be used(port speed should be locked).
  96.  : o   Buffer  should be  purged  on 'break'  from your PC or from the
  97.  :     remote.
  98.  : o   The modem should use RTS/CTS rather than XON/XOFF flow control.
  99.  : o   The modem should use RTS/CTS to indicate when  it cannot accept
  100.  :     additional data and should recognize when your PC has indicated
  101.  :     that it is unable to accept additional data from your modem.
  102.  : o   MNP4 and V.42 are always desirable.  Allowing  MNP5 will reduce
  103.  :     ARC/PAK/ZIP file transfer speed. Allowing V.42bis does will not
  104.  :     noticably  reduce ARC/PAK/ZIP file  transfer speed, nor will it
  105.  :     help.
  106.  : o   Reduce transmit(outbound)  buffering to very small numbers. For
  107.  :     error correcting links, a hundred characters may be needed. For
  108.  :     non-error-correcting  links,  a   dozen  characters  should  be
  109.  :     plenty.
  110.  : o   When dialing, the modem should request an error correcting link
  111.  :     whenever the carrier speed is 9600bps or  more, but should only
  112.  :     request an error correcting  link below 9600bps if '.m' appears
  113.  :     as a prefix to the  telephone  number in the dialing directory.
  114.  :     By convention, a BBS  with an error correcting modem will pause
  115.  :     for 6 to 12 seconds before  the first characters  from  the BBS
  116.  :     appear, awaiting  MNP or V.42 link requests.  Requesting  error
  117.  :     correction when  the  modem being  called does  not have  error
  118.  :     correction available will cause most  forms  of  bulletin board
  119.  :     software to malfunction. Modems with  speeds of 9600bps or more
  120.  :     can safely be assumed to be  capable of accepting a request for
  121.  :     an error correcting link.
  122.  : o   The modem should be set to make  the CONNECT line the last line
  123.  :     of  response.  Error correction and  data  compression messages
  124.  :     should be indicated  either on  previous lines or  on the  same
  125.  :     line.
  126.  : o   The  modem must  be set to  react  to  the  lowering of DTR  by
  127.  :     hanging  up(placing  phone  on hook)  and  reverting to command
  128.  :     state without re-initializing its settings.
  129.  : o   The modem should be set to recognize BUSY if at all possible.
  130.  : o   The modem should be set to recognize a lack of dial tone  if at
  131.  :     all possible.
  132.  : o   The  modem  should  be set  to  recognize  NO ANSWER if at  all
  133.  :     possible.
  134.  : o   The modem should not be  set  to attempt  recognition of  voice
  135.  :     connections.
  136.  : o   The modem  should  not be set to grant remote digital loop  for
  137.  :     remote modems.  If  you  see strings  of uppercase U's(UUUUUU),
  138.  :     you've probably left this enabled.
  139.  : o   If the 'time to wait before  recognizing carrier'  value is too
  140.  :     small, it will result in  false carrier  detection on connects.
  141.  :     If you observe carrier being detected  and then lost again very
  142.  :     soon  afterward,  or if your  modem  connects  at  300bps to  a
  143.  :     high-speed modem, try adjusting this value.
  144.